package first;

import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.Scrollbar;

public class ScrollDemo extends Frame{
	ScrollDemo(String title){
		super(title);
		Scrollbar sb=new Scrollbar(Scrollbar.HORIZONTAL,0,1,0,50);
		System.out.println(sb.getOrientation());
	    System.out.println(sb.getValue());
	    System.out.println(sb.getVisibleAmount());
	    System.out.println(sb.getMinimum());
	    System.out.println(sb.getMaximum());
	    Scrollbar sb2=new Scrollbar(Scrollbar.VERTICAL);
	    sb2.setValues(0,1,0,50);
	    add(sb,BorderLayout.NORTH);
	    add(sb2,BorderLayout.EAST);
	    setSize(400,400);
	    setVisible(true);
		
	}
	 public static void main(String[] args)
	 { ScrollDemo sc=new ScrollDemo("Scroll");
	 }
	

}
